<div class="modal-header">
  <h3 class="modal-title" id="modal-title">I'm a modal!</h3>
</div>
<div class="modal-body" id="modal-body">
  <ul>
    <li ng-repeat="item in ModalDemoCtrl.items">
      <a
        href="#"
        ng-click="$event.preventDefault(); ModalDemoCtrl.selected.item = item"
        >{{ item }}</a
      >
    </li>
  </ul>
  Selected: <b>{{ ModalDemoCtrl.selected.item }}</b>
</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" ng-click="ModalDemoCtrl.ok()">
    OK
  </button>
  <button
    class="btn btn-warning"
    type="button"
    ng-click="ModalDemoCtrl.cancel()"
  >
    Cancel
  </button>
</div>
